package com.mzj.saas.mservice.lock.service;

import com.mzj.saas.mservice.lock.Repository.SmartLockAuthRepository;
import com.mzj.saas.mservice.lock.entity.SmartLockAuth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SmartLockAuthService {
    @Autowired
    private SmartLockAuthRepository smartLockAuthRepository;

    public SmartLockAuth findByHouseIdAndAuthorUserId(String houseId, String userId) {
        return smartLockAuthRepository.findByHouseIdAndAuthorUserId(houseId,userId);
    }
}
